package com.itheima.exerciseTest.test50_59;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

public class Test53 {
    public static void main(String[] args) throws IOException {
        /*BufferedInputStream bis = new BufferedInputStream(new FileInputStream("backBurner\\a.txt"));

        long count = 0L;
        byte[] bytes = new byte[1024];
        int len;
        while((len = bis.read(bytes)) != -1){
            count += len;
        }
        bis.close();
        System.out.println(count);*/
        File file = new File("backBurner\\a.txt");
        long length = file.length();
        System.out.println(length);

    }
}
